<?php
/**
 * Created by PhpStorm.
 * Author: 黑瞎子
 * Date: 2018/4/29
 * Time: 21:21
 */

namespace app\api\validate;


class ProductNew extends BaseValidate
{
    protected $rule = [
        'id' => 'isPositiveInteger',
        'name' => 'isNotEmpty',
        'price' => 'isNotEmpty',
        'stock' => 'isNotEmpty',
        'category_id' => 'isNotEmpty',
    ];
}